# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'KTaskTimerReport.ui'
#
# Created: Thu Mar 26 00:01:46 2009
#      by: PyQt4 UI code generator 4.4.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui
from gui import KTaskTimerRC
from lib import datetimeedit

class Ui_TaskTimerReports(object):
    def setupUi(self, TaskTimerReports):
        TaskTimerReports.setObjectName("TaskTimerReports")
        TaskTimerReports.resize(650, 450)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icons/TaskTimer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        TaskTimerReports.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(TaskTimerReports)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtGui.QLabel(self.centralwidget)
        self.label.setMinimumSize(QtCore.QSize(70, 0))
        self.label.setMaximumSize(QtCore.QSize(40, 16777215))
        self.label.setBaseSize(QtCore.QSize(40, 0))
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.projectList = QtGui.QComboBox(self.centralwidget)
        self.projectList.setObjectName("projectList")
        self.gridLayout.addWidget(self.projectList, 0, 1, 1, 1)
        self.label_2 = QtGui.QLabel(self.centralwidget)
        self.label_2.setMinimumSize(QtCore.QSize(50, 0))
        self.label_2.setMaximumSize(QtCore.QSize(70, 16777215))
        self.label_2.setBaseSize(QtCore.QSize(70, 0))
        self.label_2.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 0, 2, 1, 1)
        #self.dateFrom = QtGui.QDateEdit(self.centralwidget)
        self.dateFrom = datetimeedit.PyDateEdit(self.centralwidget)
        self.dateFrom.setCalendarPopup(True)
        self.dateFrom.setObjectName("dateFrom")
        self.gridLayout.addWidget(self.dateFrom, 0, 3, 1, 1)
        self.label_3 = QtGui.QLabel(self.centralwidget)
        self.label_3.setMinimumSize(QtCore.QSize(50, 0))
        self.label_3.setMaximumSize(QtCore.QSize(70, 16777215))
        self.label_3.setBaseSize(QtCore.QSize(70, 0))
        self.label_3.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 0, 4, 1, 1)
        #self.dateTo = QtGui.QDateEdit(self.centralwidget)
        self.dateTo = datetimeedit.PyDateEdit(self.centralwidget)
        self.dateTo.setCalendarPopup(True)
        self.dateTo.setObjectName("dateTo")
        self.gridLayout.addWidget(self.dateTo, 0, 5, 1, 1)
        self.generateReport = QtGui.QPushButton(self.centralwidget)
        self.generateReport.setObjectName("generateReport")
        self.gridLayout.addWidget(self.generateReport, 0, 6, 1, 1)
        self.label_4 = QtGui.QLabel(self.centralwidget)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 1, 0, 1, 2)
        self.reportTree = QtGui.QTreeWidget(self.centralwidget)
        self.reportTree.setEditTriggers(QtGui.QAbstractItemView.DoubleClicked)
        self.reportTree.setAlternatingRowColors(True)
        self.reportTree.setRootIsDecorated(False)
        self.reportTree.setItemsExpandable(False)
        self.reportTree.setWordWrap(True)
        self.reportTree.setObjectName("reportTree")
        self.gridLayout.addWidget(self.reportTree, 2, 0, 1, 7)
        TaskTimerReports.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(TaskTimerReports)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 650, 21))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        TaskTimerReports.setMenuBar(self.menubar)
        self.actionSave_as = QtGui.QAction(TaskTimerReports)
        self.actionSave_as.setObjectName("actionSave_as")
        self.actionClose = QtGui.QAction(TaskTimerReports)
        self.actionClose.setObjectName("actionClose")
        self.menuFile.addAction(self.actionSave_as)
        self.menuFile.addAction(self.actionClose)
        self.menubar.addAction(self.menuFile.menuAction())
        self.label.setBuddy(self.projectList)
        self.label_2.setBuddy(self.dateFrom)
        self.label_3.setBuddy(self.dateTo)

        self.retranslateUi(TaskTimerReports)
        QtCore.QMetaObject.connectSlotsByName(TaskTimerReports)

    def retranslateUi(self, TaskTimerReports):
        TaskTimerReports.setWindowTitle(QtGui.QApplication.translate("TaskTimerReports", "Simple Task Timer Reports", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("TaskTimerReports", "Project", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("TaskTimerReports", "Date from", None, QtGui.QApplication.UnicodeUTF8))
        self.dateFrom.setDisplayFormat(QtGui.QApplication.translate("TaskTimerReports", "dd.MM.yyyy", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("TaskTimerReports", "Date to", None, QtGui.QApplication.UnicodeUTF8))
        self.dateTo.setDisplayFormat(QtGui.QApplication.translate("TaskTimerReports", "dd.MM.yyyy", None, QtGui.QApplication.UnicodeUTF8))
        self.generateReport.setText(QtGui.QApplication.translate("TaskTimerReports", "Generate", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("TaskTimerReports", "Report", None, QtGui.QApplication.UnicodeUTF8))
        self.reportTree.headerItem().setText(0, QtGui.QApplication.translate("TaskTimerReports", "Project", None, QtGui.QApplication.UnicodeUTF8))
        self.reportTree.headerItem().setText(1, QtGui.QApplication.translate("TaskTimerReports", "Task", None, QtGui.QApplication.UnicodeUTF8))
        self.reportTree.headerItem().setText(2, QtGui.QApplication.translate("TaskTimerReports", "Task progress", None, QtGui.QApplication.UnicodeUTF8))
        self.reportTree.headerItem().setText(3, QtGui.QApplication.translate("TaskTimerReports", "Duration (min)", None, QtGui.QApplication.UnicodeUTF8))
        self.reportTree.headerItem().setText(4, QtGui.QApplication.translate("TaskTimerReports", "Start date", None, QtGui.QApplication.UnicodeUTF8))
        self.reportTree.headerItem().setText(5, QtGui.QApplication.translate("TaskTimerReports", "End date", None, QtGui.QApplication.UnicodeUTF8))
        self.menuFile.setTitle(QtGui.QApplication.translate("TaskTimerReports", "File", None, QtGui.QApplication.UnicodeUTF8))
        self.actionSave_as.setText(QtGui.QApplication.translate("TaskTimerReports", "Save as...", None, QtGui.QApplication.UnicodeUTF8))
        self.actionSave_as.setToolTip(QtGui.QApplication.translate("TaskTimerReports", "Save as...", None, QtGui.QApplication.UnicodeUTF8))
        self.actionClose.setText(QtGui.QApplication.translate("TaskTimerReports", "Close", None, QtGui.QApplication.UnicodeUTF8))
